package com.cj.peiwan.server.other;

import org.wei.utils.exception.LogHelper;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class InitListener implements ServletContextListener {

    @Override
    public void contextDestroyed(ServletContextEvent arg0) {

    }

    @Override
    public void contextInitialized(ServletContextEvent arg0) {
        LogHelper.getInstance().getClassnamefilters().add("com.cj");
        LogHelper.getInstance().getClassnamefilters().add("org.wei");
        LogHelper.getInstance().setDir("/var/log/peiwan/");
        PWSetting.setTest(false);
    }

}
